<%@ include file="/WEB-INF/jsp/include/head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%><%@ taglib uri="http://www.geeksaga.com/pagination-taglib" prefix="bbs" %>
<%@ include file="/WEB-INF/jsp/include/skin_head.jsp" %>
<html>
<head>
	<%@ include file="/WEB-INF/jsp/include/manager_title.jsp" %>
	<%@ include file="/WEB-INF/jsp/include/manager_common_css.jsp" %>
    <style type="text/css" media="screen">
        <jsp:include page="./skin/default/css/admin.css"/>
    </style>
    <%@ include file="/WEB-INF/jsp/include/common_script.jsp" %>
     <script type="text/javascript">
    //<![CDATA[
    <%@ include file="/js/bbs/bbs.js" %>

    function bbsUseModifySave() {
    	$("#frmBbsUseModify").submit();
    }
  //]]>
    </script>
</head>
<body>
    <%@ include file="/WEB-INF/jsp/include/manager_top.jsp" %>
	<%@ include file="/WEB-INF/jsp/include/adminBbsEachMgntSubMenu.jsp" %>
	<form:form id="frmBbsUseModify" method="post" action="bbsUseModify.do"  modelAttribute="bbsType" >
		<input type="hidden" id="command" name="command" value="BBS_USE_MODIFY" />
	    <div id="pw_bbs_list">
	        <div id="pw_bbs_list_header" style="height: 30"></div>
	        <div id="pw_bbs_list_body">
		        <table border="0" cellspacing="0" cellpadding="0" width="100%" >
		        	<tr>
		        		<br/>
		        	</tr>
			        <tr>
				        <td valign="top">
				            <table border="1" cellspacing="0" cellpadding="0" width="700" align="center">
				                <thead id="pw_bbs_title">
				                    <tr>
				                        <th style="width:20px"></th>
				                        <th style="width:60px"><spring:message code="bbs.bbsId" /></th>
				                        <th style="width:60px"><spring:message code="bbs.bbsName" /></th>
				                        <th style="width:50px"><spring:message code="bbs.bbsUseYn" /></th>
				                        <th style="width:50px"><spring:message code="bbs.today" />/<spring:message code="bbs.totalCnt" /></th>
				                        <th style="width:60px"><spring:message code="bbs.registTimestamp" /></th>
				                    </tr>
				                </thead>
				                <tbody>
				                    <c:if test="${total == 0}">
				                    <tr>
				                        <td colspan="5" align="center"><spring:message code="bbs.msg.empty"/></td>
				                    </tr>
				                    </c:if>
				                    <c:forEach items="${list}" var="bbs" varStatus="status">
				                    	<tr onmouseover="this.style.backgroundColor='#f1f6fb'" onmouseout="this.style.backgroundColor='#fefefe'" style="text-align: center">
				                    		<td style="width:20px"><form:checkbox path="bbsId" value="${bbs.bbsId}"  /></td>
				                    		<td style="width:60px">${bbs.bbsId}</td>
				                    		<td style="width:60px">${bbs.bbsName}</td>
				                    		<c:choose>
				                    			<c:when test="${bbs.bbsUseYn == 1}">
					                    			<td style="width:60px">Y</td>
				                    			</c:when>
				                    			<c:otherwise>
					                    			<td style="width:60px">N</td>
				                    			</c:otherwise>
				                    		</c:choose>
				                    		<td style="width:60px">${bbs.todayCnt}/${bbs.totalCnt}</td>
				                    		<td style="width:60px">${bbs.registTimestamp}</td>
				                    	</tr>
				                    </c:forEach>
				                </tbody>
				            </table>
				            </td>
			            </tr>
		            </table>
	        </div>
	        
	         <!--<div id="pw_list_footer">
	            <table border="0" width="100%" cellspacing="0" cellpadding="0">
	            <colgroup>
	                <col class="page" />
	            </colgroup>
	            <tr>
	                <td align="center">
	                    <bbs:page
			                total="${total}"
			                pageSize="10"
			                link="list.do?categorySid=${param.categorySid}&amp;bbsId="
			                beginLabel="Home "
			                endLabel=" End"
			                prevLabel="&lt; "
			                nextLabel=" >"
			                pageGroupSize="10" />
	                </td>
	            </tr>
	            </table>
	        </div>
	        -->
	        <br/>
	        <table width="700" cellspacing="0" cellpadding="2" border="1" align="center" bordercolorlight="#C0D2DF" bordercolordark="#FFFFFF">
	        	<tbody>
	        		<tr>
	        			<td class="titleBlock">게시판 종류</td>
					    <td>
					    	<c:forEach var="bbsTypeEnum" items="${bbsTypeList}">
								<form:radiobutton path="bbsType" value="${bbsTypeEnum}"/>${bbsTypeEnum.description}<br/>
							</c:forEach>
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">게시판 유형</td>
					    <td>
					    	<c:forEach var="bbsModelEnum" items="${bbsModelList}">
								<form:radiobutton path="bbsModel" value="${bbsModelEnum}"/>${bbsModelEnum.description}<br/>
							</c:forEach>
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">태그(키워드 기능) 사용여부</td>
					    <td>
							<form:radiobutton path="tagYn" value="1"/> 사용
							<form:radiobutton path="tagYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">자동 답글보기 사용여부</td>
					    <td>
							<form:radiobutton path="replyViewYn" value="1"/> 사용
							<form:radiobutton path="replyViewYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">댓글 사용여부</td>
					    <td>
							<form:radiobutton path="memoYn" value="1"/> 사용
							<form:radiobutton path="memoYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">댓글 붐업 사용여부</td>
					    <td>
							추후 작업 예정
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">관련글 사용여부</td>
					    <td>
							추후 작업 예정
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">글추천 사용여부</td>
					    <td>
							<form:radiobutton path="rateYn" value="1"/> 사용
							<form:radiobutton path="rateYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">글점수 매김 사용여부</td>
					    <td>
							<form:radiobutton path="starYn" value="1"/> 사용
							<form:radiobutton path="starYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">글 조회시 글 답변 목록 조회 사용여부</td>
					    <td>
							<form:radiobutton path="replyListYn" value="1"/> 사용
							<form:radiobutton path="replyListYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">비밀 글 사용여부</td>
					    <td>
							<form:radiobutton path="secretYn" value="1"/> 사용
							<form:radiobutton path="secretYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">글 답변 사용여부</td>
					    <td>
							<form:radiobutton path="replyYn" value="1"/> 사용
							<form:radiobutton path="replyYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">익명 글 사용여부</td>
					    <td>
							<form:radiobutton path="anonymityYn" value="1"/> 사용
							<form:radiobutton path="anonymityYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">여러 글 동시에 선택하여 보기 사용여부</td>
					    <td>
							<form:radiobutton path="multiViewYn" value="1"/> 사용
							<form:radiobutton path="multiViewYn" value="0"/> 미사용
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">글 작성 CCL 사용여부</td>
					    <td>
							추후 작업 예정
					    </td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock">첨부파일 개수</td>
					    <td>
					    	<form:input path="fileCnt"/>개
					    </td>
	        		</tr>
	        	</tbody>
	        </table>
	        
	        <table width="700" >
				<tr>
           			<td align="center">
           				<input type="button" title="저장" value="저장" name="bbsUseModifyModify" onclick="bbsUseModifySave();"/>
           			</td>
           		</tr>
			</table>
	    </div>
    </form:form>
	<%@ include file="/WEB-INF/jsp/include/footer.jsp" %>    
</body>
</html>